home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / Inline Input for TextEdit / InlineInputSample / InlineInputSample.make < prev    next >
Encoding:
Text File  |  1994-03-23  |  5.5 KB  |  134 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        InlineInputSample.make
  3. #
  4. #    Contains:    make file for InlineInputSample variants
  5. #
  6. #    Copyright:    © 1989-1994 Apple Computer, Inc. All rights reserved.
  7. #
  8.  
  9. #    Build Information
  10. #    -----------------
  11. #    This version of InlineInputSample has been built with a beta
  12. #    version of the Macintosh on RISC SDK. You may have a somewhat
  13. #    different version of the SDK, or a different environment which may
  14. #    or may not support code generation for PowerPC. These notes are
  15. #    intended to help you build InlineInputSample anyway.
  16. #
  17. #    InlineInputSample relies on the Universal C interfaces, which support
  18. #    compilation for both 68K and PowerPC, and has been successfully built
  19. #    with the Universal interfaces of 2/4/94.
  20. #    It also needs the universal TSMTE.h interface file which you find in
  21. #    the TSMTE Interfaces folder; please move it into your PPCCIncludes
  22. #    folder.
  23. #
  24. #    This makefile assumes that you have set the Shell variable
  25. #    PPCCIncludes to the name of the folder containing the interfaces.
  26. #    The version of the SDK that I'm using provides a UserStartup•PPC which
  27. #    does this automatically.
  28. #
  29. #    This makefile lets you build three applications in two versions each.
  30. #    The applications are:
  31. #        - InlineInputSample, which supports inline input using TSMTE
  32. #        - SimpleSample, which doesn't
  33. #        - AppleEventsSample, which adds Apple events to SimpleSample as an
  34. #            intermediate step towards supporting inline input
  35. #    The versions are:
  36. #        - 68K, which runs native on 68K Macs and emulated on PowerPC Macs
  37. #        - Fat, which runs native on either platform
  38. #    If you have the Macintosh on RISC SDK, you can execute
  39. #        Make -f InlineInputSample.make All
  40. #    to get the build commands for the fat versions. Otherwise, execute
  41. #        Make -f InlineInputSample.make All68K
  42. #    to get the build instructions for the 68K versions of all applications.
  43.         
  44.  
  45. Obj = :Objects:
  46.  
  47. GenericObjs68K = ∂
  48.             {Obj}InlineInputSample.a.o ∂
  49.             "{Libraries}"Runtime.o ∂
  50.             "{Libraries}"Interface.o
  51.  
  52. GenericObjsPPC = ∂
  53.             "{PPCLibraries}"StdCLib.xcoff ∂
  54.             "{PPCLibraries}"MathLib.xcoff ∂
  55.             "{PPCLibraries}"StdCRuntime.o ∂
  56.             "{PPCLibraries}"PPCCRuntime.o ∂
  57.             "{PPCLibraries}"InterfaceLib.xcoff
  58.  
  59. LibEquates = -l InterfaceLib.xcoff=InterfaceLib -l StdCLib.xcoff=StdCLib -l MathLib.xcoff=MathLib
  60.  
  61.  
  62. All ƒ InlineInputSample AppleEventsSample SimpleSample
  63.  
  64. All68K ƒ InlineInputSample.68K AppleEventsSample.68K SimpleSample.68K
  65.  
  66.  
  67. .68KCode ƒ .c.o
  68.     Link -o {targDir}{default}.68KCode {depDir}{default}.c.o {GenericObjs68K}
  69.  
  70. {Obj}SimpleSample.68KCode {Obj}AppleEventsSample.68KCode {Obj}InlineInputSample.68KCode ƒ {Obj}InlineInputSample.a.o
  71.  
  72. .PPCCode ƒ .o
  73.     PPCLink -o {targDir}{default}.xcoff {depDir}{default}.o {GenericObjsPPC}
  74.     MakePef -o {targDir}{default}.PPCCode {depDir}{default}.xcoff {LibEquates}
  75.  
  76. {Obj} ƒ {Obj}
  77.  
  78.  
  79. SimpleSample.68K ƒ {Obj}SimpleSample.68KCode InlineInputSample.r InlineInputSample.h
  80.     Duplicate -r -y {Obj}SimpleSample.68KCode {Targ}
  81.     Rez -d qAppleEvents=0 -d qInline=0 -d qPowerPC=0 -rd -append -o {Targ} InlineInputSample.r
  82.     SetFile {Targ} -t APPL -c 'issa' -a Bi
  83.  
  84. SimpleSample ƒ {Obj}SimpleSample.68KCode {Obj}SimpleSample.PPCCode InlineInputSample.r InlineInputSample.h
  85.     Duplicate -d -y {Obj}SimpleSample.PPCCode {Targ}
  86.     Duplicate -r -y {Obj}SimpleSample.68KCode {Targ}
  87.     Rez -d qAppleEvents=0 -d qInline=0 -d qPowerPC=1 -rd -append -o {Targ} InlineInputSample.r
  88.     SetFile {Targ} -t APPL -c 'issa' -a Bi
  89.  
  90.  
  91. AppleEventsSample.68K ƒ {Obj}AppleEventsSample.68KCode InlineInputSample.r InlineInputSample.h
  92.     Duplicate -r -y {Obj}AppleEventsSample.68KCode {Targ}
  93.     Rez -d qAppleEvents=1 -d qInline=0 -d qPowerPC=0 -rd -append -o {Targ} InlineInputSample.r
  94.     SetFile {Targ} -t APPL -c 'issa' -a Bi
  95.  
  96. AppleEventsSample ƒ {Obj}AppleEventsSample.68KCode {Obj}AppleEventsSample.PPCCode InlineInputSample.r InlineInputSample.h
  97.     Duplicate -d -y {Obj}AppleEventsSample.PPCCode {Targ}
  98.     Duplicate -r -y {Obj}AppleEventsSample.68KCode {Targ}
  99.     Rez -d qAppleEvents=1 -d qInline=0 -d qPowerPC=1 -rd -append -o {Targ} InlineInputSample.r
  100.     SetFile {Targ} -t APPL -c 'issa' -a Bi
  101.  
  102.  
  103. InlineInputSample.68K ƒ {Obj}InlineInputSample.68KCode InlineInputSample.r InlineInputSample.h
  104.     Duplicate -r -y {Obj}InlineInputSample.68KCode {Targ}
  105.     Rez -d qAppleEvents=1 -d qInline=1 -d qPowerPC=0 -rd -append -o {Targ} InlineInputSample.r
  106.     SetFile {Targ} -t APPL -c 'issa' -a Bi
  107.  
  108. InlineInputSample ƒ {Obj}InlineInputSample.68KCode {Obj}InlineInputSample.PPCCode InlineInputSample.r InlineInputSample.h
  109.     Duplicate -d -y {Obj}InlineInputSample.PPCCode {Targ}
  110.     Duplicate -r -y {Obj}InlineInputSample.68KCode {Targ}
  111.     Rez -d qAppleEvents=1 -d qInline=1 -d qPowerPC=1 -rd -append -o {Targ} InlineInputSample.r
  112.     SetFile {Targ} -t APPL -c 'issa' -a Bi
  113.  
  114.  
  115. {Obj}SimpleSample.c.o ƒƒ InlineInputSample.c InlineInputSample.h
  116.     C -d qAppleEvents=0 -d qInline=0 -r InlineInputSample.c -o {targ} -i {PPCCIncludes}
  117.  
  118. {Obj}SimpleSample.o ƒ InlineInputSample.c InlineInputSample.h
  119.     PPCC -d qAppleEvents=0 -d qInline=0 -appleext on InlineInputSample.c -o {targ}
  120.  
  121. {Obj}AppleEventsSample.c.o ƒƒ InlineInputSample.c InlineInputSample.h
  122.     C -d qAppleEvents=1 -d qInline=0 -r InlineInputSample.c -o {targ} -i {PPCCIncludes}
  123.  
  124. {Obj}AppleEventsSample.o ƒ InlineInputSample.c InlineInputSample.h
  125.     PPCC -d qAppleEvents=1 -d qInline=0 -appleext on InlineInputSample.c -o {targ}
  126.  
  127. {Obj}InlineInputSample.c.o ƒƒ InlineInputSample.c InlineInputSample.h
  128.     C -d qAppleEvents=1 -d qInline=1 -r InlineInputSample.c -o {targ} -i {PPCCIncludes}
  129.  
  130. {Obj}InlineInputSample.o ƒ InlineInputSample.c InlineInputSample.h
  131.     PPCC -d qAppleEvents=1 -d qInline=1 -appleext on InlineInputSample.c -o {targ}
  132.  
  133. {Obj}InlineInputSample.a.o ƒ InlineInputSample.a
  134.     Asm InlineInputSample.a -o {Obj}InlineInputSample.a.o